package com.gitee.wsl.common.chart.render.shape.line

import android.graphics.Color
import android.graphics.Paint
import com.gitee.wsl.common.chart.model.PlotDot
import com.gitee.wsl.common.ui.draw.type.DotStyle

/**
 * @ClassName PlotLines
 * @Description  用于处理线条
 * @author XiongChuanLiang<br/>(xcl_168@aliyun.com)
 *
 */

class PlotLine {
     val linePaint: Paint by lazy{
          Paint().apply {
              color = Color.BLUE
              isAntiAlias = true
              strokeWidth = 5f
          }
     }
     val dotLabelPaint: Paint by lazy{
         Paint().apply {
             color = Color.BLUE
             isAntiAlias = true
             textSize = 18f
             textAlign = Paint.Align.CENTER
         }
     }
     val dotPaint: Paint by lazy{
         Paint().apply {
             color = Color.BLUE
             isAntiAlias = true
             strokeWidth = 5f
         }
     }
     val plotDot: PlotDot = PlotDot()

    var dotStyle: DotStyle
       get() = plotDot.dotStyle
       set(value) {
           plotDot.dotStyle=value
       }
}